<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta name="keywords" content="甜爱，SweetLove,甜品，甜点，生日蛋糕，冰淇淋，冰品"/>
    <meta name="description" content="甜爱网上商城是专注于甜品销售、进口的网站，各种甜品、甜点齐全，还有解暑的各种冰品任顾客挑选，让他们感受到爱的温馨。">
    <meta charset="utf-8">
    <title>收藏夹</title>
    <link rel="stylesheet" href="/fore/css/favorite.css">
    <link rel="stylesheet" href="/fore/css/toastr/toastr.min.css" >
    <script src="/fore/js/jquery-v1.10.2.min.js" type="text/javascript"></script>
</head>

<body>
<!--页头-->
<div th:replace="fore/include/header::head"></div>
<!--内容-->
<div id="contentCon">
	<div class="left">
    	<div></div>
        <p>晨曦夏夜</p>
        <a href="#">切换账号</a>
        <span></span>
        <ul>
            <li><a href="/fore/user/info" >个人信息</a></li>
            <li><a href="/fore/order/list" >我的订单</a></li>
            <li><a href="/fore/favorite/list" class="my">收藏夹</a></li>
            <li><a href="/fore/address/list">地址管理</a></li>
            <li><a href="/fore/user/settings">账号设置</a></li>
        </ul>
    </div>
    <div class="right">
    	<ul>
        	<li class="all">我的收藏</li>
        </ul>

        <div  th:each="favorite:${favorites}">
        	<li>
                <img src="" th:src="${favorite.productPicture}" alt="">
            </li>
            <ul>
            	<li>
                	<p th:text="${favorite.productName}"></p>
                </li>
                <li th:text="'¥' + ${favorite.productPrice / 100}"></li>
                <li>
                	<a class="delFavorite" th:favorite-id="${favorite.id}">删除</a>
                </li>
            </ul>
        </div>

    </div>
    <ol th:if="${totalPage > 1}">
    	<a href="/fore/favorite/list" >首页</a>


        <a th:each="pageNum:${#numbers.sequence(1, totalPage)}" th:text="${pageNum}" th:attrappend="class=${pageNum} eq ${currPage} ? 'curr' : ''" th:href="@{/fore/favorite/list(page=${pageNum})}">
        </a>


        <a href="" th:href="@{/fore/favorite/list(page=${totalPage})}" ><li>尾页</li></a>
    </ol>


    
</div>
<!--页脚-->
<div th:replace="fore/include/footer::foot"></div>
</body>
</html>
